package com.zhanggm.springcloud.user.api;

import com.zhanggm.springcloud.user.api.model.User;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl implements UserApi {
    @Override
    public String getUsernameById(Integer id) {
        return null;
    }

    @Override
    public User getUserById(Integer id) {
        User user = new User();
        user.setUsername("error");
        return user;
    }

    @Override
    public User getUserByUser(User user) {
        return null;
    }
}
